pick out of a hat

Translations
tirer au sort
Definitions
To select something or someone at random, often by drawing names or items from a container such as a hat, implying that the choice is made without bias or preference.